<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::io::LZFImageWriter类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1io_1_1_l_z_f_image_writer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="classpcl_1_1io_1_1_l_z_f_image_writer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::io::LZFImageWriter类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>PCL-LZF image format writer. The PCL-LZF image format is nothing else but a LZF-modified compression over an existing file type (e.g., PNG). However, in certain situations, like <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> data for example, an [RGBRGB...<a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a>] array will be first reordered into [RR...RGG...GBB...B] in order to ensure better compression.  
 <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="lzf__image__io_8h_source.html">lzf_image_io.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::io::LZFImageWriter 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1io_1_1_l_z_f_image_writer.png" usemap="#pcl::io::LZFImageWriter_map" alt=""/>
  <map id="pcl::io::LZFImageWriter_map" name="pcl::io::LZFImageWriter_map">
<area href="classpcl_1_1io_1_1_l_z_f_depth16_image_writer.html" title="PCL-LZF 16-bit depth image format writer." alt="pcl::io::LZFDepth16ImageWriter" shape="rect" coords="0,56,189,80"/>
<area href="classpcl_1_1io_1_1_l_z_f_r_g_b24_image_writer.html" title="PCL-LZF 24-bit RGB image format writer." alt="pcl::io::LZFRGB24ImageWriter" shape="rect" coords="199,56,388,80"/>
<area href="classpcl_1_1io_1_1_l_z_f_bayer8_image_writer.html" title="PCL-LZF 8-bit Bayer image format writer." alt="pcl::io::LZFBayer8ImageWriter" shape="rect" coords="99,112,288,136"/>
<area href="classpcl_1_1io_1_1_l_z_f_y_u_v422_image_writer.html" title="PCL-LZF 16-bit YUV422 image format writer." alt="pcl::io::LZFYUV422ImageWriter" shape="rect" coords="298,112,487,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae9075336c39a30cd0c18221e1a131d8e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#ae9075336c39a30cd0c18221e1a131d8e">LZFImageWriter</a> ()</td></tr>
<tr class="separator:ae9075336c39a30cd0c18221e1a131d8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f055b180f4d53ab9e407898f355d0b1"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a8f055b180f4d53ab9e407898f355d0b1">~LZFImageWriter</a> ()</td></tr>
<tr class="separator:a8f055b180f4d53ab9e407898f355d0b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6640cb967fa26fe440a9ff16395dfab"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#aa6640cb967fa26fe440a9ff16395dfab">write</a> (const char *data, uint32_t width, uint32_t height, const std::string &amp;filename)=0</td></tr>
<tr class="memdesc:aa6640cb967fa26fe440a9ff16395dfab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save an image into PCL-LZF format. Virtual.  <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#aa6640cb967fa26fe440a9ff16395dfab">更多...</a><br /></td></tr>
<tr class="separator:aa6640cb967fa26fe440a9ff16395dfab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a272516f85121a7e20e376f9c451afccf"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a272516f85121a7e20e376f9c451afccf">writeParameters</a> (const <a class="el" href="structpcl_1_1io_1_1_camera_parameters.html">CameraParameters</a> &amp;parameters, const std::string &amp;filename)=0</td></tr>
<tr class="memdesc:a272516f85121a7e20e376f9c451afccf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write camera parameters to disk. Virtual.  <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a272516f85121a7e20e376f9c451afccf">更多...</a><br /></td></tr>
<tr class="separator:a272516f85121a7e20e376f9c451afccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b665c1727acdbb7439f005ba40ad752"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a3b665c1727acdbb7439f005ba40ad752">write</a> (const char *data, uint32_t width, uint32_t height, const <a class="el" href="structpcl_1_1io_1_1_camera_parameters.html">CameraParameters</a> &amp;parameters, const std::string &amp;filename_data, const std::string &amp;filename_xml)</td></tr>
<tr class="memdesc:a3b665c1727acdbb7439f005ba40ad752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save an image and its camera parameters into PCL-LZF format.  <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a3b665c1727acdbb7439f005ba40ad752">更多...</a><br /></td></tr>
<tr class="separator:a3b665c1727acdbb7439f005ba40ad752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e0626c670f5bfb0b5dae7ecf8ec827c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a5e0626c670f5bfb0b5dae7ecf8ec827c">writeParameter</a> (const double &amp;parameter, const std::string &amp;tag, const std::string &amp;filename)</td></tr>
<tr class="memdesc:a5e0626c670f5bfb0b5dae7ecf8ec827c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a single image/camera parameter to file, given an XML tag  <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a5e0626c670f5bfb0b5dae7ecf8ec827c">更多...</a><br /></td></tr>
<tr class="separator:a5e0626c670f5bfb0b5dae7ecf8ec827c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a52c590f2db9b184ab198860610e96fea"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a52c590f2db9b184ab198860610e96fea">saveImageBlob</a> (const char *data, size_t data_size, const std::string &amp;filename)</td></tr>
<tr class="memdesc:a52c590f2db9b184ab198860610e96fea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save a compressed image array to disk  <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a52c590f2db9b184ab198860610e96fea">更多...</a><br /></td></tr>
<tr class="separator:a52c590f2db9b184ab198860610e96fea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f45a1e8fca214cb2947bec1c25e60c4"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a0f45a1e8fca214cb2947bec1c25e60c4">compress</a> (const char *input, uint32_t input_size, uint32_t width, uint32_t height, const std::string &amp;image_type, char *output)</td></tr>
<tr class="memdesc:a0f45a1e8fca214cb2947bec1c25e60c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Realtime LZF compression.  <a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a0f45a1e8fca214cb2947bec1c25e60c4">更多...</a><br /></td></tr>
<tr class="separator:a0f45a1e8fca214cb2947bec1c25e60c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>PCL-LZF image format writer. The PCL-LZF image format is nothing else but a LZF-modified compression over an existing file type (e.g., PNG). However, in certain situations, like <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> data for example, an [RGBRGB...<a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a>] array will be first reordered into [RR...RGG...GBB...B] in order to ensure better compression. </p>
<p>The current list of compressors/decompressors include:</p><ul>
<li>LZF compressed 24-bit [RR...RGG...GBB...B] data</li>
<li>LZF compressed 8-bit Bayer data</li>
<li>LZF compressed 16-bit YUV422 data</li>
<li>LZF compressed 16-bit depth data</li>
</ul>
<p>Please note that files found using the above mentioned extensions will be treated as such. Inherit from this class and overwrite the I/O methods if you plan to change this behavior.</p>
<p>The main advantage of using the PCL-LZF image I/O routines is a very good file size versus I/O speed ratio. Tests performed using LZF, Snappy, ZIP, GZ2, BZIP2, as well as PNG, JPEG, and TIFF compression have shown that the internal PCL LZF methods provide the best score for the types of applications PCL is suited for.</p>
<dl class="section author"><dt>作者</dt><dd>Radu B. Rusu </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ae9075336c39a30cd0c18221e1a131d8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9075336c39a30cd0c18221e1a131d8e">&#9670;&nbsp;</a></span>LZFImageWriter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pcl::io::LZFImageWriter::LZFImageWriter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Empty constructor </p>
<div class="fragment"><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;{}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a8f055b180f4d53ab9e407898f355d0b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f055b180f4d53ab9e407898f355d0b1">&#9670;&nbsp;</a></span>~LZFImageWriter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual pcl::io::LZFImageWriter::~LZFImageWriter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Empty destructor </p>
<div class="fragment"><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;{}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a0f45a1e8fca214cb2947bec1c25e60c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f45a1e8fca214cb2947bec1c25e60c4">&#9670;&nbsp;</a></span>compress()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t pcl::io::LZFImageWriter::compress </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>input_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>image_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>output</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Realtime LZF compression. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>the array to compress </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">input_size</td><td>the size of the array to compress </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>the with of the data array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>the height of the data array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">image_type</td><td>the type of the image to save. This should be an up to 16 characters string describing the data type. Examples are: "bayer8", "rgb24", "yuv422", "depth16". </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>the compressed output array (must be pre-allocated!) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the number of bytes in the output array </dd></dl>

</div>
</div>
<a id="a52c590f2db9b184ab198860610e96fea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52c590f2db9b184ab198860610e96fea">&#9670;&nbsp;</a></span>saveImageBlob()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::io::LZFImageWriter::saveImageBlob </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>data_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save a compressed image array to disk </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>the data to save </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_size</td><td>the size of the data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>the file name to write the data to </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if operation successful, false otherwise </dd></dl>

</div>
</div>
<a id="a3b665c1727acdbb7439f005ba40ad752"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b665c1727acdbb7439f005ba40ad752">&#9670;&nbsp;</a></span>write() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool pcl::io::LZFImageWriter::write </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1io_1_1_camera_parameters.html">CameraParameters</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename_xml</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save an image and its camera parameters into PCL-LZF format. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>the array holding the image </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>the with of the data array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>the height of the data array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">parameters</td><td>the camera parameters </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filename_data</td><td>the file name to write the data to </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filename_xml</td><td>the file name to write the parameters to </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if operation successful, false otherwise </dd></dl>
<div class="fragment"><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        {</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;          <span class="keywordtype">bool</span> res1 = <a class="code" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#aa6640cb967fa26fe440a9ff16395dfab">write</a> (data, width, height, filename_data);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;          <span class="keywordtype">bool</span> res2 = <a class="code" href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a272516f85121a7e20e376f9c451afccf">writeParameters</a> (parameters, filename_xml);</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;          <span class="keywordflow">return</span> (res1 &amp;&amp; res2);</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1io_1_1_l_z_f_image_writer_html_a272516f85121a7e20e376f9c451afccf"><div class="ttname"><a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#a272516f85121a7e20e376f9c451afccf">pcl::io::LZFImageWriter::writeParameters</a></div><div class="ttdeci">virtual bool writeParameters(const CameraParameters &amp;parameters, const std::string &amp;filename)=0</div><div class="ttdoc">Write camera parameters to disk. Virtual.</div></div>
<div class="ttc" id="aclasspcl_1_1io_1_1_l_z_f_image_writer_html_aa6640cb967fa26fe440a9ff16395dfab"><div class="ttname"><a href="classpcl_1_1io_1_1_l_z_f_image_writer.html#aa6640cb967fa26fe440a9ff16395dfab">pcl::io::LZFImageWriter::write</a></div><div class="ttdeci">virtual bool write(const char *data, uint32_t width, uint32_t height, const std::string &amp;filename)=0</div><div class="ttdoc">Save an image into PCL-LZF format. Virtual.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aa6640cb967fa26fe440a9ff16395dfab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6640cb967fa26fe440a9ff16395dfab">&#9670;&nbsp;</a></span>write() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool pcl::io::LZFImageWriter::write </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save an image into PCL-LZF format. Virtual. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>the array holding the image </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>the with of the data array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>the height of the data array </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>the file name to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if operation successful, false otherwise </dd></dl>

<p>在 <a class="el" href="classpcl_1_1io_1_1_l_z_f_bayer8_image_writer.html#ac1e2d9febd18cf408ef9ade2132478e9">pcl::io::LZFBayer8ImageWriter</a>, <a class="el" href="classpcl_1_1io_1_1_l_z_f_y_u_v422_image_writer.html#a3f65662fd19b8a9a32648729590bd14a">pcl::io::LZFYUV422ImageWriter</a>, <a class="el" href="classpcl_1_1io_1_1_l_z_f_r_g_b24_image_writer.html#aee1ae929faa704ac61cdd8e6ea006925">pcl::io::LZFRGB24ImageWriter</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_l_z_f_depth16_image_writer.html#a8997a7877c2a648ec474966d2a7fe7dd">pcl::io::LZFDepth16ImageWriter</a> 内被实现.</p>

</div>
</div>
<a id="a5e0626c670f5bfb0b5dae7ecf8ec827c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e0626c670f5bfb0b5dae7ecf8ec827c">&#9670;&nbsp;</a></span>writeParameter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::io::LZFImageWriter::writeParameter </td>
          <td>(</td>
          <td class="paramtype">const double &amp;&#160;</td>
          <td class="paramname"><em>parameter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>tag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a single image/camera parameter to file, given an XML tag </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">parameter</td><td>the value of the parameter to write </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>the value of the XML tag </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>the file name to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if operation successful, false otherwise Example: <div class="fragment"><div class="line">pcl::io::LZFDepthImageWriter w;</div>
<div class="line">w.writeParameter (0.001, <span class="stringliteral">&quot;depth.multiplication_factor&quot;</span>, <span class="stringliteral">&quot;parameters.xml&quot;</span>);</div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="a272516f85121a7e20e376f9c451afccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a272516f85121a7e20e376f9c451afccf">&#9670;&nbsp;</a></span>writeParameters()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool pcl::io::LZFImageWriter::writeParameters </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1io_1_1_camera_parameters.html">CameraParameters</a> &amp;&#160;</td>
          <td class="paramname"><em>parameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write camera parameters to disk. Virtual. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">parameters</td><td>the camera parameters </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>the file name to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if operation successful, false otherwise </dd></dl>

<p>在 <a class="el" href="classpcl_1_1io_1_1_l_z_f_r_g_b24_image_writer.html#a173b3d6b5beba26719c714599d02490b">pcl::io::LZFRGB24ImageWriter</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_l_z_f_depth16_image_writer.html#a2654c30a32e87695fb847e833c7b0283">pcl::io::LZFDepth16ImageWriter</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/<a class="el" href="lzf__image__io_8h_source.html">lzf_image_io.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>io</b></li><li class="navelem"><a class="el" href="classpcl_1_1io_1_1_l_z_f_image_writer.html">LZFImageWriter</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
